<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Prova Oficial Contabilidade Informatizada</title>
</head>
<body>
	<div align="center">
		<jsp:include page="menu.jsp" />
		<form action="entregues" method="post">
			<c:set var="turma" value="${requestScope.turma}"></c:set>
			<table>
				<tr>
					<td>Turma:</td>
					<td><input type="text" readonly="readonly" name="turma"
						value="${param.turma}"></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="Consultar"
						name="consulta"></td>
				</tr>
			</table>
		</form>

		<c:if test="${not empty requestScope.setAlunos}">
			<table border="2">
				<tr>
					<td><h2>Alunos que entregaram a prova</h2></td>
				</tr>
				<c:forEach var="aluno" items="${requestScope.setAlunos}">
					<tr>
						<td><c:out value="${aluno}" /></td>
					</tr>
				</c:forEach>
			</table>
		</c:if>

		<c:if test="${not empty requestScope.erro}">
			<c:out value="${requestScope.erro}"></c:out>
		</c:if>
	</div>
</body>
</html>